apply a translation vector to translate a figure